package com.youlu.campus.admin.zm.req;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.youlu.campus.admin.zm.msg.MsgObject;
import lombok.Data;

import java.util.LinkedList;
import java.util.List;

/**
 * @author : [dengbo]
 * @className : ZmMsgRequest
 * @description : [芝麻客户回复消息类]
 * @createTime : [2022/11/10 18:57]
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class ZmReplyMsgRequest extends ZmBaseMsgRequest{
    private List<MsgObject> message = new LinkedList<>();

    public ZmReplyMsgRequest addMsg(MsgObject msgObject){
        message.add(msgObject);
        return this;
    }

    public ZmReplyMsgRequest addAll(List<MsgObject> list){
        message.addAll(list);
        return this;
    }
}
